package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.dao.db1.FileGroupDao;
import com.sailfish.springbootdemo.pojo.db1.FileGroup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FileGroupServiceImpl implements FileGroupService {

    @Autowired
    private FileGroupDao fileGroupDao;

    @Override
    public FileGroup getFileGroupById(Integer fileGroupId) {
        return fileGroupDao.getFileGroupById(fileGroupId);
    }

    @Override
    public List<FileGroup> getAllFileGroup() {
        return fileGroupDao.getAllFileGroup();
    }
}
